﻿<br />
<div class="container">
    <!--博客内部导航栏和搜索框start-->
    <nav class="bread-crumbs">
        <div id="breadcrumb">
            <ul class="breadcrumb" style="height:50px;">
                <li style="margin-top:5px">
                    <a href="javascript:void(0)" onclick="SnippetOnLoad()">摘要</a>
                </li>
                <li>
                    <a href="javascript:void(0)" onclick="firstLoadGitHistory()">开发日志</a>
                </li>
                <li>
                    <a href="#">相册</a>
                </li>
                <li class="active">
                    <a href="#">目录</a>
                </li>
                <li style="float:right">
                    <form class="navbar-form navbar-right" style="margin-top:0px;margin-bottom:0px" role="search">
                            <div class="form-group">
                                <input id="searchWords" class="form-control" placeholder="输入搜索关键词" type="text" />
                            </div>

                            <button type="button" class="btn btn-info" onclick="searchPost($('#searchWords').val())">搜索</button>
                        </form>

                    @*<form class="navbar-form navbar-right" name="f1" target="_blank" style="margin-top: 0px;margin-bottom: 0px;">
                        <table bgcolor="#FFFFFF" style="font-size:9pt;">
                            <tr>
                                <td>
                                    <input type="text" id="bdcsMain"  style="max-width:200px" class="form-control"  size="30" maxlength="100">
                                    <input type="submit" class="btn btn-info" value="站内搜索"><br>
                                </td>
                            </tr>
                        </table>
                    </form>*@
                </li>
            </ul>
        </div>
    </nav>
    <!--博客内部导航栏和搜索框end-->
    <!--套用博客详细内容和博客日志摘要-->
    <div class="row" id="content">

    </div>
    </br>
</div>

<script type="text/javascript">
    //首次加载摘要整个页面布局
    function SnippetOnLoad() {
        $.post('Blog/Snippet', function (data) {
            $("#content").html(data);
            //uParse('.snippetContent', {
            //    rootPath: '../Content/js/UEditor/third-party'
            //})
            getSnippet('', '', 1);
            MessageBoardOnLoad();
        });
    }

    //根据关键词查找文章
    function searchPost(keyWords) {
        if (isNullOrEmpty(keyWords)) {
            return;
        }
        $.post('Blog/Search', {
            'keyWords': keyWords
        }, function (data) {
            $('#content').html(data);
        })
    }
    //加载留言板布局
    function MessageBoardOnLoad() {
        $.post('Blog/MsgBoard', function (data) {
            $('#MsgBoardArea').html(data);
            getBoardPaging();
        });
    }

    function firstLoadGitHistory() {
        showLoading('gitHub访问慢请耐心等待');
        //repository - content
        $.get('Home/loadGitHistory', function (html) {
            $('#content').empty();
            $('#content').append('<div style="margin-left: 20px;"><h4>开发日志 : </h4><a href="https://github.com/woaimulaohu/Tuzki_WebSite/commits/master/MyWebProject" target="_blank">https://github.com/woaimulaohu/Tuzki_WebSite/commits/master/MyWebProject</a></div>');
            $('#content').append(html);
            hideLoading();
        });
    }
    function loadGitHistory(after, page) {
        //repository - content
        showLoading('gitHub访问慢请耐心等待');
        $.get('Home/loadGitHistory?after=' + after + '&page=' + page, function (html) {
            $("#historyMore").remove();
            $('#content').append(html);
            hideLoading();
        });
    }
    //JS首次加载时调用摘要
    SnippetOnLoad();

</script>
<script src="http://s1.bdstatic.com/r/www/cache/global/js/BaiduHttps_20150714_zhanzhang.js"></script>
<script>
    function checkHttps() {
        BaiduHttps.useHttps();
    };
</script>